{% if warning == true %} <b class='red span8'> Paramenter inserted incorrect </b> {% endif %}
<form enctype="multipart/form-data" action="
    {% if team is defined %} {{ path('_team_edit', {'id' : team.id}) }} 
    {% else %} {{ path('_team_add') }} {% endif %}
    " method="POST">
    <div class='row'>
        <button type="submit" class="btn btn-primary pull-right">
           {% if team is defined %} Save Team
           {% else %} Create Team {% endif %}
       </button>
    </div>
    <div class='span4'>
        <fieldset>
            <legend>Team Info. </legend>
            <label for="name">Team name</label>
            <input id="name" type="text" name="name" value="{% if team is defined %} {{team.name}} {% endif %}" />
            <label for="email2">Logo</label>
            {% if team is defined %} 
                {% if team.logo %}
                    <img src="/{{team.getLogo().getWebPath()}}" height="120" width="120">
                {% else %}
                    <input id="logo" name="logo" type="file" accept="image/*" />
                {% endif %}
            {% else %} <input id="logo" name="logo" type="file" accept="image/*" />{% endif %}
        </fieldset>
    </div>
    <div class='span3'>
        <fieldset>
            <legend>Player 1</legend>
            <label for="player1">Name</label>
            <input id="player1" type="text" name="player1" value="{% if team is defined %} {{team.player1}} {% endif %}" />
            <label for="email1">Email</label>
            <input id="email1" type="text" name="email1" value="{% if team is defined %} {{team.email1}} {% endif %}" /><br/>
        </fieldset>
    </div>
    <div class='span3'>
        <fieldset>
            <legend>Player 2</legend>
            <label for="player2">Name</label>
            <input id="player2" type="text" name="player2" value="{% if team is defined %} {{team.player2}} {% endif %}" />
            <label for="email2">Email</label>
            <input id="email2" type="text" name="email2" value="{% if team is defined %} {{team.player2}} {% endif %}" /><br/>
        </fieldset>
    </div>        
</form>